
/*
整体布局
*/
.body-grid {
    display: grid;
    grid-template-rows: 70px 590px 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
}

.header-grid {
    display: grid;
    grid-template-columns: 1fr 10fr 1fr;
    background-color: #4d5154;
}

/*
标题样式
*/

.page-title {
    font-weight: bold;
    font-size: xxx-large;
    text-align: center;
    color: white;
}

/*
返回按钮样式
*/
.go-back-button {
    display: block;
    font-size: 32px;
    margin: 5px auto auto;
}

/*
下一步按钮样式
*/
.next-button {
    display: block;
    font-size: 32px;
}

/*
分页组件居中对齐
*/

.page-ul-flex {
    justify-content: center; /*居中对齐*/
    margin-bottom: 0;
}

/*
进度条箭头样式
 */

.progress-bar-arrow {
    font-size: 28px;
    padding-bottom: 2px;
    grid-area: arrow;
}

/*
进度条文本样式
 */
.progress-bar-text {
    font-size: 12px;
    text-align: center;
    grid-area: text;
}

/*
进度条按钮样式
 */
.progress-bar-button {
    display: block;
    margin: auto;
    width: 35px;
    height: 35px;
    background-color: green;
    border-radius: 50%;
    grid-area: button;
}
.progress-bar-button:disabled{
    background-color: gray;
}

/*
进度条单个组件布局
 */
.progress-bar-grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-template-areas:
                "button arrow"
                "text empty";
    width: 80px;
}

/*
进度条总体布局
 */

.progress-bar-flex {
    display: flex;
    flex-direction: row;
    justify-content: center;
}


/*
自定义弹窗布局
 */
.my-dialog {
    display: grid;
    grid-template-rows: 30px auto 40px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 500px;
    border: 1px solid black;
    background-color: white;
    align-items: center;
}
/*
更大的弹窗
 */
.my-dialog.my-dialog-larger{
    width: 800px;
}
/*
小弹窗
 */
.my-dialog.my-dialog-smaller{
    width: 300px;
}
/*
弹窗头
 */
.my-dialog-header {
    font-size: larger;
    text-align: center;
    font-weight: bold;
    border-bottom: 1px solid black;

}
/*
弹窗尾
 */
.my-dialog-footer {
    display: flex;
    justify-content: flex-end;
    border-top: 1px solid black;
}

.my-dialog-ft-btn {
    margin-right: 30px;
    margin-top: 5px;
}
/*
弹窗体
 */
.my-dialog-body {
    max-height: 80vh;
    overflow-y: auto;
}
/*
弹窗背景
 */
.my-dialog-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    background-color: rgba(0, 0, 0, 0.5);
}
/*
弹窗项
 */
.input-layout {
    display: grid;
    grid-template-columns: 90px auto;
    grid-template-areas:
                "label input"
                "empty err";
    align-items: center;
    padding: 5px;
}

.input-area {
    grid-area: input;
}

.label-area {
    grid-area: label;
}

.err-area {
    grid-area: err;
}

input {
    border: 1px solid black;
}

textarea {
    border: 1px solid black;
}
select {
    border: 1px solid black;
}
/*
弹窗关闭图标
 */
.close-icon {
    float: right;
    margin-top: 5px;
    margin-right: 10px;
}

/*
表格内容显示过长解决/需要在td上规定max-width配合使用，具体看表格需要:
       例如：
       .table td{
            max-width: 20vw;
        }
 */
.table td{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.table td:hover {
    white-space: normal;
    word-wrap: break-word;
    overflow: visible;
}